package com.example.community.dao;

import com.example.community.mapper.AdminsMapper;
import com.example.community.model.Admins;
import org.apache.ibatis.session.SqlSession;

/**
 * 管理员表
 */
public class AdminsDao {
    public Admins fandById(String id){
        try (SqlSession session = MybatisUtil.getSession()){
            final AdminsMapper mapper = session.getMapper(AdminsMapper.class);
            return mapper.selectByPrimaryKey(id);
        }
    }
}
